package cn.sx.guoxd.springboot;

import cn.sx.guoxd.springboot.util.MyInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@MapperScan(basePackages="cn.sx.guoxd.springboot.dao")
@Configuration
public class MybatisConfig {
    @Bean
    public MyInterceptor myInterceptor(){
        return new MyInterceptor();
    }
}
